package uk.ac.bath.legacy;
//import  uk.ac.bath.engine.*;
//import  uk.ac.bath.util.*;


import java.util.Comparator;
import uk.ac.bath.environment.cell.CellIF;

public class CellAgeComparator implements Comparator<CellIF> {

    public int compare(CellIF a1, CellIF b1) {
        Cell a = (Cell) a1;
        Cell b = (Cell) b1;

        if (a.age > b.age) {
            return 1;
        }
        if (a.age < b.age) {
            return -1;
        }
        return 0;
    }
}
